package com.code1031.interfacedemo;

public class Dog extends Animal implements Swim {

    public Dog() {}
    public Dog(String name, int age) {
        super(name,age);
    }

    @Override
    public void eat() {
        System.out.println("大狗在吃骨头");
    }

    @Override
    public void swim() {
        System.out.println("大狗在游泳");
    }
}
